Caching files on reverse proxy
am 10.11.2009 19:36:18 von vara prasad--001485f6c3600228d40478089647
Content-Type: text/plain; charset=ISO-8859-1
Hi All,
I have set up a reverse proxy www.example.com for an internal tomcat server
http://internal:8080
Few files are hosted on http://internal:8080.
My requirement is when user downloads a file from http://internal:8080 using
the proxy, the proxy should cache the file with its original extension. A
..pdf file downloaded from http://internal:8080 should be available in the
reverse proxy's cache as a .pdf file. Can any one help to get to it?
Thanks in advance.
--001485f6c3600228d40478089647
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi =A0All,=A0
xample.com for an internal tomcat server 0">http://internal:8080
cache the file with its original extension. A .pdf file downloaded from=A0=
=A0 should be avai=
lable in the reverse proxy's cache as a .pdf file. =A0Can any one help =
to get to it?=A0
--001485f6c3600228d40478089647--
Re: Caching files on reverse proxy
am 10.11.2009 20:21:21 von Brian MearnsOn Tue, Nov 10, 2009 at 1:36 PM, vara prasad
rote:
> Hi =A0All,
> I have set up a reverse proxy www.example.com for an internal tomcat serv=
er
> http://internal:8080
> Few files are hosted on http://internal:8080.
> My requirement is when user downloads a file from=A0http://internal:8080 =
using
> the=A0proxy, the proxy should cache the file with its original extension.=
A
> .pdf file downloaded from http://internal:8080 should be available i=
n the
> reverse proxy's cache as a .pdf file. =A0Can any one help to get to it?
> Thanks in advance.
>
>
What kind of reverse proxy did you set up? Using Apache and mod_proxy,
or some other software, like Squid? If you're using mod_proxy with
Apache, I don't think caching is done automatically, you'll want to
look at mod_cache: http://httpd.apache.org/docs/2.0/mod/mod_cache.html
For other software, dedicated caching proxies (again, like Squid)
usually keep their cache is a more complex way then you seem to be
expecting. For instance, the cache may be stored partially in RAM and
partially on disk, or in a database. At any rate, cahce entries are
not generally stored in any kind of user-friendly way where you can
just browse to the cache directory and look for *.pdf files. They're
typically stored based on some sort of hashing mechanism so they can
be quickly recovered.
-Brian
--=20
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Caching files on reverse proxy
am 11.11.2009 02:10:11 von vara prasad--001636e1f73da874d104780e16d1
Content-Type: text/plain; charset=ISO-8859-1
Hi Brian,
I have set up Apache with mod_proxy with following config
__________________
CacheRoot d:/apache_cache
CacheEnable disk /
CacheDirLevels 2
CacheDirLength 3
__________________
..data and .header files are stored in cache. Is it possible to retrieve the
cached files on Apache?
Thanks in advance.
On Wed, Nov 11, 2009 at 12:51 AM, Brian Mearns
> On Tue, Nov 10, 2009 at 1:36 PM, vara prasad
> wrote:
> > Hi All,
> > I have set up a reverse proxy www.example.com for an internal tomcat
> server
> > http://internal:8080
> > Few files are hosted on http://internal:8080.
> > My requirement is when user downloads a file from http://internal:8080using
> > the proxy, the proxy should cache the file with its original extension. A
> > .pdf file downloaded from http://internal:8080 should be available in
> the
> > reverse proxy's cache as a .pdf file. Can any one help to get to it?
> > Thanks in advance.
> >
> >
>
> What kind of reverse proxy did you set up? Using Apache and mod_proxy,
> or some other software, like Squid? If you're using mod_proxy with
> Apache, I don't think caching is done automatically, you'll want to
> look at mod_cache: http://httpd.apache.org/docs/2.0/mod/mod_cache.html
>
> For other software, dedicated caching proxies (again, like Squid)
> usually keep their cache is a more complex way then you seem to be
> expecting. For instance, the cache may be stored partially in RAM and
> partially on disk, or in a database. At any rate, cahce entries are
> not generally stored in any kind of user-friendly way where you can
> just browse to the cache directory and look for *.pdf files. They're
> typically stored based on some sort of hashing mechanism so they can
> be quickly recovered.
>
> -Brian
>
>
> --
> Feel free to contact me using PGP Encryption:
> Key Id: 0x3AA70848
> Available from: http://keys.gnupg.net
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
--001636e1f73da874d104780e16d1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi Brian,
config=A0
fModule mod_cache.c>
CacheRoot d:/apache_cache
vels 2
stored in cache. Is it possible to retrieve the cached files on Apache? v>
v>
Wed, Nov 11, 2009 at 12:51 AM, Brian Mearns < =3D"mailto:mearns.b@gmail.com">mearns.b@gmail.com> wrote:
x #ccc solid;padding-left:1ex;">
ov 10, 2009 at 1:36 PM, vara prasad < gmail.com">vprasad.pendyala@gmail.com> wrote:
> Hi =A0All,
> I have set up a reverse proxy t=3D"_blank">www.example.com for an internal tomcat server
> http://internal:808=
0
> Few files are hosted on =3D"_blank">http://internal:8080.
> My requirement is when user downloads a file from=A0 internal:8080" target=3D"_blank">http://internal:8080 using
> the=A0proxy, the proxy should cache the file with its original extensi=
on. A
> .pdf file downloaded from =3D"_blank">http://internal:8080 should be available in the
> reverse proxy's cache as a .pdf file. =A0Can any one help to get t=
o it?
> Thanks in advance.
>
>
_proxy,
or some other software, like Squid? If you're using mod_proxy with
Apache, I don't think caching is done automatically, you'll want to=
look at mod_cache: e.html" target=3D"_blank">http://httpd.apache.org/docs/2.0/mod/mod_c ache.ht=
ml
For other software, dedicated caching proxies (again, like Squid)
usually keep their cache is a more complex way then you seem to be
expecting. For instance, the cache may be stored partially in RAM and
partially on disk, or in a database. At any rate, cahce entries are
not generally stored in any kind of user-friendly way where you can
just browse to the cache directory and look for *.pdf files. They're
>
typically stored based on some sort of hashing mechanism so they can
be quickly recovered.
-Brian
--
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://=
keys.gnupg.net
------------------------------------------------------------ ---------
orum of the Apache HTTP Server Project.
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org
=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: org">users-help@httpd.apache.org
--001636e1f73da874d104780e16d1--
Re: Caching files on reverse proxy
am 11.11.2009 02:38:43 von Eric CovenerOn Tue, Nov 10, 2009 at 8:10 PM, vara prasad
rote:
> Hi Brian,
> I have set up Apache with mod_proxy=A0with following config
> __________________
>
>
> CacheRoot d:/apache_cache
> CacheEnable disk /
> CacheDirLevels 2
> CacheDirLength 3
>
> __________________
> .data and .header files are stored in cache. Is it possible to retrieve t=
he
> cached files on Apache?
Are you trying to read files cached by Apache via the filesystem
instead of requesting them over HTTP? Why?
Is this what you meant by the filename changing? Do you have some
kind of Alias that points intot he d:/apache_cache? This seems like
an awfully bad idea.
--=20
Eric Covener
covener@gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org